# views.py: 路由，视图函数
# 蓝图
from flask import Blueprint, render_template
from .models import *
blue = Blueprint('user',__name__)
# blue2 = Blueprint('product',__name__)
@blue.route('/')
def index1():
    data = {
        'name':'zhangsan zhangsan zhangsan',
        'age':5,
        'likes':['sing','dance','code','ball']
    }
    # return render_template('home.html',**data)
    # return render_template('base.html')
    # return render_template('child1.html')
    # return render_template('child2.html')
    return render_template('child2.html',**data)

# @blue2.route('/goods')
# def index1():
#     return 'index1'